home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / 3Dfx / demos / Makefile < prev    next >
Makefile  |  1998-12-15  |  1KB  |  48 lines

  1. #
  2. # Makefile for the Voodoo demos
  3. #
  4.  
  5. CC=gcc
  6. LINKER=gcc
  7. #COPTS=-g -m486 -Wall -pipe -I../../include -DFX
  8. COPTS=-O3 -fomit-frame-pointer -m486 -Wall -pipe -I../../include -DFX -DXMESA
  9. LINKOPTS=-L../../lib -L/usr/local/glide/lib -L/usr/X11R6/lib -lglut -lMesaGLU -lMesaGL -lXt -lXi -lXmu -lXext -lX11 -lm
  10.  
  11. all: tunnel tunnel2 teapot fire terrain paltex glbpaltx gltest ray ipers
  12.  
  13. ipers: ipers.o image.o
  14.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  15.  
  16. ray: ray.o
  17.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  18.  
  19. gltest: gltest.o
  20.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  21.  
  22. tunnel2: tunnel2.o image.o sources.o
  23.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  24.  
  25. tunnel: tunnel.o image.o sources.o
  26.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  27.  
  28. paltex: paltex.o
  29.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  30.  
  31. glbpaltx: glbpaltx.o
  32.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  33.  
  34. teapot: teapot.o image.o dteapot.o shadow.o
  35.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  36.  
  37. fire: fire.o image.o
  38.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  39.  
  40. terrain: mesaland.o
  41.     $(LINKER) $(COPTS) $(OBJS) $^ -o $@ $(LINKOPTS)
  42.  
  43. clean:
  44.     rm -f *.o tunnel tunnel2 teapot fire terrain paltex glbpaltx gltest ray 
  45.  
  46. %.o: %.c
  47.     $(CC) -c $(COPTS) $< -o $@
  48.